import {
    Request
} from "../utils/request";


//主页中  统计接口
export const home = (data) => Request({
    // url:"http://adminv2.happymmall.com/manage/statistic/base_count.do",
    // url:"http://adminv2.happymmall.com/manage/product/list.do",
    url: "/api/statistic/base_count.do",
    method: "get",
    data: data
})



//登录  
export const login = (data) => Request({
    url: `/api/user/login.do`,
    method: "post",
    params: data
})


//用户管理    不传参    传参
export const users = (data) => Request({
    url: `/api/user/list.do`,
    method: "post",
    params: data
})

export const list = (data) => Request({
    url: `/api/product/list.do`,
    method: "get",
    params: data
})

export const tian = (data) => Request({
    url: `/api/category/get_category.do`,
    method: "get",
    params: data
})

// export const erji = (data) => Request({
//     url: `/api/category/get_category.do`,
//     method: "get",
//     params: data
// })